import React, { Component } from 'react'

export default class App extends Component {
  state = {
    list : ["1111", "2222", "3333"]
  }
  
  render() {

    var newlist = this.state.list.map((item,index) => <li key={index}>{item}</li>);

    return (
      <div>
        <ul>
          {
            newlist
          }
        </ul>
        
      </div>
    )
  }
}

/**
 * 原生js - map
 */
var list = ["aaa", "bbb", "cc"];

var newlist = list.map(item => `<li>${item}</li>`);
  console.log(newlist.join(""));  //拼接